﻿
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>fansunion-js-demo</title>
<script src="fu-string.js"></script>
<script type="text/javascript">
function testString(){

  var formatStr=StringUtil.format("fsasns","s",2);
  document.write("formatStr:"+formatStr+"<br/><br/>");
   
  var filledStr=StringUtil.fill("fans","s",10,true);
   document.write("filledStr:"+filledStr+"<br/><br/>");
   
  var randomNumber=StringUtil.random(3,2);
  document.write("Random number:"+randomNumber+"<br/><br/>");
  
  var withEmptyStr =" abc def	";
  document.write("Before trim:"+withEmptyStr+"<br/>");
  var afterTrimStr=StringUtil.trim(withEmptyStr);
  document.write("After  trim:"+afterTrimStr+"<br/><br/>");
	
  var idList="23,43,62,1989";
  var id=62;
  document.write("Before delete:"+idList+"<br/>");
  var newIdList=StringUtil.deleteId(idList,id);
  document.write("After  delete:"+newIdList);
}

testString();

</script>

<body> 
</body>
</html>
